// 封装三个方法，用于操作token


// 设置
const key = 'admin'
export const setToken = (token) => {
    localStorage.setItem(key, token)
}

// 获取
export const getToken = () => localStorage.getItem(key)

// 删除
export const removeToken = () => {
    localStorage.removeItem(key)
}